package com.itheima.array;

/**
 * @author jiangxun
 * @date 11-14-2024
 */
public class SeatArrangement {
    public static void main(String[] args) {
        String[][] seats = {
                {"张无忌", "赵敏", "周芷若"},
                {"张三丰", "宋远桥", "殷梨亭"},
                {"灭绝", "陈昆", "玄冥二老", "金毛狮王"},
                {"杨逍", "纪晓芙", "玄冥二老", "金毛狮王"}
        };
        //打印学生的座位信息
        System.out.println("学生的座位信息：");
        printSeats(seats);
    }

    private static void printSeats(String[][] seats) {
        for(int i =0;i<seats.length;i++){
            System.out.println("第"+(i+1)+"排：");
            for(int j=0;j<seats[i].length;j++){
                System.out.print(seats[i][j]+" ");
            }
            System.out.println();
        }
    }
}
